package com.cea.papyrus.diagram.sequence.ui.validators;

import org.eclipse.jface.dialogs.IInputValidator;

public class IntegerInputValidator implements IInputValidator {

	public String isValid(String newText) {

		try {
			Integer.parseInt(newText);
			return null;
		} catch (NumberFormatException e) {
			return "Bad value";
		}
	}
}
